All Based on Calls from this KB:
https://kb.givenergy.cloud/article.php?id=51


You will need to edit the .ps1 files in notepad to add your API key (from the old portal) and change any other variables such as dates etc...